/**
 * Licensed to CMIM,Inc. under the terms of the CMIM * Software License version 1.0.
 * See the NOTICE file distributed with this work for additional * information regarding copyright ownership.
 * ---------------------------------------------------------------------------- * Date Author Version
 * 2019/3/16 neusoft 1.0
 **/

package com.xnyzc.lhy.task.fegin.driver;

import com.xnyzc.lhy.task.config.TokenAuthConfiguration;
import com.xnyzc.lhy.task.fallback.driver.QuartzDriverWorkStatisticsFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author: 刘举
 * @Date: 2019-07-27 11:16
 * @Description 司机工作统计相关
 */
@FeignClient(name = "${feign.applicationName.order}", configuration = TokenAuthConfiguration.class, fallback = QuartzDriverWorkStatisticsFallback.class)
public interface QuartzDriverWorkStatisticsService {

    /**
     * 自动处理司机在线时长
     *
     * @return
     */
    @GetMapping(value = "/task/batchUpdateOrders/updateOrdersData")
    void updateOrdersData();

    /**
     * 监听活跃度
     */
    @GetMapping(value = "/task/batchUpdateOrders/driverActiveListen")
    void driverActiveListen();

    /**
     * 更改订单状态为订单超时
     */
    @GetMapping(value = "/task/batchUpdateOrders/updateOrderStatus")
    void updateOrderStatus();

    @GetMapping(value = "/dapi/driverPersonalDetails/reFushUpdatePhoneCount")
    void reFushUpdatePhoneCount();

    /**
     * 查询锁定的司机看看有无订单（每五分钟）
     */
    @GetMapping(value = "/task/driverService/driverLockProtection")
    void driverLockProtection();

    /**
     * 查看未支付订单-oa_d_order（每天晚上11点触发）
     */
    @GetMapping(value = "/task/driverService/paymentReview")
    void paymentReview();

    /**
     * 调度订单
     */
    @GetMapping(value = "/task/batchUpdateOrders/dispatchOrder")
    void dispatchOrder();

}
